home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _7826C16549D145EE896DE9D28983443E < prev    next >
Encoding:
Text File  |  2006-08-04  |  999 b   |  34 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': u'Corel Corporation',
  6.         'Copyright': u'Copyright (c) 2004 Corel Corporation  All rights reserved.',
  7.         'Description': u'',
  8.         'Host': u'Paint Shop Pro 9',
  9.         'Host Version': u'9.00'
  10.         }
  11.  
  12. def Preset_AddNoise():
  13.     return {
  14.         'NoiseAmount': 35, 
  15.         'NoiseType': App.Constants.NoiseType.Uniform, 
  16.         'Monochrome': True, 
  17.         'GeneralSettings': {
  18.             'ExecutionMode': App.Constants.ExecutionMode.Default, 
  19.             'DialogPlacement': {
  20.                 'ShowMaximized': False, 
  21.                 'Rect': ((0,0), 0, 0)
  22.                 }, 
  23.             'PreviewVisible': True, 
  24.             'AutoProof': False, 
  25.             'RandomSeed': 62112039, 
  26.             'AutoActionMode': App.Constants.AutoActionMode.Match
  27.             }
  28.         }
  29.  
  30. def Do(Environment):
  31.     # Add Noise
  32.     App.Do( Environment, 'AddNoise',         Preset_AddNoise())
  33.  
  34.